package com.gjs.common.enums.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.gjs.common.enums.IEntityEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhongwenguang
 * @date 2022-3-11 11:40
 * 季度枚举
 */
@Getter
@AllArgsConstructor
public enum QuarterEnum implements IEntityEnum {

    @ApiModelProperty("春季")
    SPRING(1,"春季"),
    @ApiModelProperty("秋季")
    AUTUMN(2,"秋季");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String text;
}
